﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace test_6_17
{
    class Score
    {
        private double Math;
        private double Chinese;
        private double English;
        public Score(double Math, double Chinese,double English)
        {
            this.Math = Math;
            this.Chinese = Chinese;
            this.English = English;
        }
        public String getScore() 
        {
            return "数学："+Math.ToString()+"、语文："+Chinese.ToString()+"、英语："+English.ToString();
        }
        public String getAve()
        {
            double sum = 0;
            sum=Math+Chinese+English;
            return (sum/3).ToString();
        }
    }
}
